var toTest = new Array();

function testAll() {
  var classes = ""; 
  for (var i = 0; i < toTest.length; i++) {
    toTest[i].prototype.test();
    var c = "" + toTest[i];
    classes += c.substring(0, c.indexOf("\n")) + " ";
  }
  alert("Tested " + toTest.length + " classes: " + classes);
  
}

function assert(a) {
  if (!a) {
    error
  }
}

function assertParams(params, types) {
  assert (params && types && params.length > 0);
  for (var i = 0; i < params.length; i++) {
    assert(params[i].constructor === types[i]);
  }
}
      